package com.angel.arquitectura.service.impl.user;

import com.angel.arquitectura.dao.factory.ArquitecturaDAOFactory;
import com.angel.arquitectura.model.user.Role;
import com.angel.arquitectura.service.impl.GenericServiceImpl;
import com.angel.arquitectura.service.user.RolService;

import java.util.Collection;

public class RolServiceImpl extends GenericServiceImpl implements RolService {

    public Collection<Role> findAllByDescription(String description) {
        return ArquitecturaDAOFactory.createInstance().getRoleDAO().findAllByDescription(description);
    }
}
